/**
 * \* Created with IntelliJ IDEA.
 * \* User: 冯若航
 * \* Date: 2021/5/7
 * \* Time: 8:35
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */
public class 左旋转字符串 {
    public String reverseLeftWords(String s, int n) {
        //return s.substring(n, s.length()) + s.substring(0, n);
        StringBuilder res=new StringBuilder();
        for(int i=n;i<s.length();i++){
            res.append(s.charAt(i));
        }
        for(int i=0;i<n;i++){
            res.append(s.charAt(i));
        }
        return res.toString();
    }
}